package com.zprmb.udzt;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

public class RealNameSuccess extends BaseActivity implements OnClickListener{
	private ImageView img_back;
	private TextView tv_tiyan,img_tiyan_money,tv_bind_card;
	private Button btn_tiyan,btn_bind;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.real_name_success);
		 BbtApplication.getInstance().addActvity(this);
		img_back=(ImageView)findViewById(R.id.img_back);
		tv_tiyan=(TextView)findViewById(R.id.tiyan_money);
		tv_bind_card=(TextView)findViewById(R.id.tv_bind_card);
		btn_bind=(Button)findViewById(R.id.in_bindcard);
		img_tiyan_money=(TextView)findViewById(R.id.img_tiyan_money);
		btn_tiyan=(Button)findViewById(R.id.in_tiyan);
		tv_bind_card=(TextView)findViewById(R.id.tv_bind_card);
//		tv_tiyan.setText(getIntent().getStringExtra("auth")+"元体验金");
//		tv_bind_card.setText(getIntent().getStringExtra("bind")+"元体验金");
//		img_tiyan_money.setText(getIntent().getStringExtra("auth"));
		img_back.setOnClickListener(this);
		btn_bind.setOnClickListener(this);
		btn_tiyan.setOnClickListener(this);
	}
	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
		BbtApplication.getInstance().removeActvity(this);
	}
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch(v.getId()){
		case R.id.img_back:
			Intent intent1=new Intent(RealNameSuccess.this,MainActivity.class);
			intent1.putExtra("regist", 0);
			startActivity(intent1);
			break;
		case R.id.in_bindcard:
			Intent intent=new Intent(RealNameSuccess.this,BankCardActivity.class);
			startActivity(intent);
			break;
		case R.id.in_tiyan:
			Intent intent2=new Intent(RealNameSuccess.this,MainActivity.class);
			startActivity(intent2);
			break;
		
		}
	}

}
